import '@/assets/styles/normalize.scss';
import '@/assets/styles/main.scss';
import '@/assets/styles/transition.scss';
import '@/assets/iconfont/iconfont.css';


import { createApp } from 'vue';
import { createPinia } from 'pinia';

import App from './App.vue';
import router from './router';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import '@/utils/permission.js';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App);
app.use(createPinia());
app.use(ElementPlus, {
  locale: zhCn
});
app.use(router);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app');
// 初始化项目主题色，所有颜色都在assets/styles/theme.scss中定义
// 通过修改document.document.setAttribute('data-theme')切换
document.documentElement.setAttribute('data-theme', 'default');

export default app;

